<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kuma Blog Index</title>
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/index.css">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script src="/js/main.js"></script>
</head>
<body>
    <div class="index-container">
        <div class="my-info">
            <div class="flipper">
                <div class="avatar">
                    <div class="thumb"></div>
                    <div class="desc">
                        <p>欢迎来到我的博客，我会在这里写一些技术、日常文章，有什么新鲜事也会在这里分享。</p>
                        <p>点击卡片，后面有更多信息哦</p>
                    </div>
                </div>
                <div class="info">
                    <p>Email: kuma790118096@gmail.com</p>
                    <p>Wechat: KumasanLi</p>
                </div>
            </div>
        </div>
        <div class="nav">
            <div class="nav-item">
                <a href="/articles" style="text-decoration: none">
                    <span>Articles</span>
                </a>
            </div>
            <div class="nav-item">
                <span>About Me</span>
            </div>
        </div> 
    </div>
    <script>
        let isRotated = false 
        $(function(){
            $(".flipper").on("click", function(){
                if (!isRotated) {
                    $(".flipper").css("transform", "rotateX(-180deg)")
                }else {
                    $(".flipper").css("transform", "rotateX(0)")
                }
                isRotated = !isRotated
            })
        })
    </script>
</body>
</html>